<?php

defined('SYSPATH') or die('Access error!');

class Controller_Admin_Ajax extends Controller
{

    public function __construct(Request $request)
    {
        parent::__construct($request);
        header('Content-Type', 'application/json');
        if (!Request::$is_ajax)
        {
            $this->request->redirect(Route::get('admin/category')->uri());
            return;
        }
    }

  

}